<?php 
 include_once dirname(__FILE__)."/config.php";
 class unite extends unite_principal{
 	
	public function countRowInTable($constraint="")
	{
		$sql=" SELECT COUNT(*) AS total FROM unite";
		$sql.=" ".$constraint;
		$this->_result=$this->_cnn->query($sql);
		$donnees_total=mysql_fetch_assoc($this->_result);
		return $donnees_total['total'];
	}
	
	
}
?>